package com.example.zuoye.entity;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 评论表主表
 */
@Data
public class CommentsRoot implements Serializable {

    // 评论的主键id
    private Integer id;

    // 该评论的唯一标识
    private String commentId;

    // 评论的商品id
    private String ownerId;

    // 评论类型: 1.文章 2.视频评论 3.资源评论
    private Integer type;

    // 评论者id
    private String fromId;

    // 评论者名字
    private String fromName;

    // 评论者头像
    private String fromAvatar;

    // 获得点赞的数量
    private Integer likeNum;

    // 评论内容
    private String content;

    // 创建时间
    private Date createTime;

    // 子评论
    private List<CommentsReply> listCommentsReply;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCommentId() {
        return commentId;
    }

    public void setCommentId(String commentId) {
        this.commentId = commentId;
    }

    public String getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(String ownerId) {
        this.ownerId = ownerId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getFromId() {
        return fromId;
    }

    public void setFromId(String fromId) {
        this.fromId = fromId;
    }

    public String getFromName() {
        return fromName;
    }

    public void setFromName(String fromName) {
        this.fromName = fromName;
    }

    public String getFromAvatar() {
        return fromAvatar;
    }

    public void setFromAvatar(String fromAvatar) {
        this.fromAvatar = fromAvatar;
    }

    public Integer getLikeNum() {
        return likeNum;
    }

    public void setLikeNum(Integer likeNum) {
        this.likeNum = likeNum;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public List<CommentsReply> getListCommentsReply() {
        return listCommentsReply;
    }

    public void setListCommentsReply(List<CommentsReply> listCommentsReply) {
        this.listCommentsReply = listCommentsReply;
    }
}
